<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="cms" uri="http://cms.gxsoft.com/tags-cms"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>数据字典</title>
<link href="<%=request.getContextPath()%>/css/reset.css" rel="stylesheet" type="text/css"/>
<link href="<%=request.getContextPath()%>/css/style.css" rel="stylesheet" type="text/css"/>
</head>

<body>
<table width="90%" border="1">
  <tr>
    <td class="nohover" colspan="4"><input class="buttonadd" type="button" value="增加" onClick="javascript:window.location.href='DataDictionary.do?method=toAdd'">&nbsp;</td>
  </tr>
  <tr>
    <th width="100">字段代码</th>
    
    <th width="150">字段名称</th>
    <th width="90">操作</th>
  </tr>
  <c:forEach items="${list}" var="data" varStatus="lineInfo">
  <tr <c:if test="${lineInfo.count % 2 == 0}">class="blue"</c:if>>
    <td>${data.dataDictionaryCode }</td>
    <td>${data.dataDictionaryName }</td>
    <td><input class="buttonmodify" type="button" value="修改" onClick="javascript:window.location.href='DataDictionary.do?method=toUpdate&did=${data.dataDictionaryId}'"> 
      <input class="buttondelete" type="button" onClick="javascript:if(confirm('该操作将删除该数据及以下的所有数据，确定要删除吗？')){window.location.href='<%=request.getContextPath()%>/DataDictionary.do?method=delete&did=${data.dataDictionaryId}'}" value="删除"  />
    </td>
  </tr>
  </c:forEach>
   <tr>
	    <td class="nohover" colspan="12" align="center">&nbsp;
	    <form name="pageForm" method="post" action="<%=request.getContextPath()%>/DataDictionary.do?method=list">
	    <c:out value="${foot}" escapeXml="false"/>
	    </form>
	    </td>
    </tr>
</table>
</body>
</html>
